<html>
<head>
</head>

<h2>My Recent Created Events </h2> 

<body>
{%if createdeventsList%}

<ul>
<a href="/CreatedEvents/"><button> See all </button></a>
{%for C_list in createdeventsList|slice:":3"%}
	<a href = "/TempEventPage/{{C_list.id}}"><li>{{C_list.eventName}}</br>{{C_list.date}}</li></a>
{% endfor%}
</ul>
{%else%}
</br>
u have no created events yet!
{%endif%}

<h2> Upcoming Events </h2> 
{%if attendingeventsList%}
<ul>
<a href ="/AttendingEvents/"><button> See all </button></a>
{% for list in attendingeventsList|slice:":3" %}
    <a href = "/TempEventPage/{{list.id}}"><li>{{ list.eventName }}</li></a>

{% endfor %}
{%else%}
u did not attend any events yet!
{%endif%}
</ul>
<h2> Search your events by <h2>
  <div align="left"><br>
   <form action="/searchEngine/" method="POST">
   {%csrf_token%}
    <select id = "drop-down-list" name="Categories">
      <option value="Name">Name</option>
      <option  value="Location">Location</option>
      <option  value="Tag">Tag</option>
      <option  value="Category">Category</option>
    </select>
   </div>
   
    <br>
    <div align="left">
    <input type="text" size="50" value="Type what you are searching for here!" name="search">
    <input type="hidden" name="Language" value="English">
    <br>
    </div>
  
   
    <br><input type="submit" value="Search now!" ><br>
    </form>
	
	<form action="/p/" method="POST">>
	
	<input type="button" value="Create an Event" onclick="window.location='http://localhost:8000/App/'"
    align="center"/>
	</form>

</body>
</html>